package cn.test.conf;

import cn.test.api.HelloService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @auther hanchao
 * @date 2016/11/10 18:30
 */
@Component
public class DubboServices {
    @Reference
    private HelloService helloService;

    @Bean
    public HelloService helloService() {
        return helloService;
    }
}
